package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户问答历史对象 dialog_history
 *
 * @author AousVolad
 * @date 2024-06-21
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
public class DialogHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 问题 */
    @Excel(name = "问题")
    private String question;

    /** 回答 */
    @Excel(name = "回答")
    private String answer;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 调用模型 */
    @Excel(name = "调用模型")
    private String modelUsed;

    /** 分组ID（外键） */
    @Excel(name = "分组ID", readConverterExp = "外=键")
    private Long groupId;

    /** 收藏标记 */
    private String collectedFlag;


}
